<template>
	<!-- 编辑弹窗 -->
	<a-modal title="分包技术答辩情况" 
		:visible="visible" 
		:width="1010" 
		@cancel="() => { $emit('cancel') }"
		@ok="submit">
		<a-form>
			<a-row :gutter="24">
				<a-col :md="12" :sm="12">
					<a-form-item label="投标单位名称" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
					<BaseInput v-model="objFrom.bidders"/>
					</a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
				  <a-form-item label="来源"
				               :labelCol="{lg: {span: 5}, sm: {span:5}}"
				               :wrapperCol="{lg: {span: 17}, sm: {span: 17} }">
                  <a-radio-group v-model="objFrom.source" class="radio-box">
                    <a-radio :value="0">
                      合格分包商名录
                    </a-radio>
                    <a-radio :value="1">
                      新引进
                    </a-radio> 
                  </a-radio-group>
				  </a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
					<a-form-item label="答辩人" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						<BaseInput v-model="objFrom.respondent" />
					</a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
					<a-form-item label="答辩人联系方式" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						<BaseInput v-model="objFrom.respondentPhone"  />
					</a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
				  <a-form-item label="是否提交资料"
				               :labelCol="{lg: {span: 5}, sm: {span:5}}"
				               :wrapperCol="{lg: {span: 17}, sm: {span: 17} }">
                  <a-radio-group v-model="objFrom.whetherSubmitDefenseMaterials" class="radio-box">
                    <a-radio :value="1">
                      是
                    </a-radio>
                    <a-radio :value="2">
                      否
                    </a-radio>
                  </a-radio-group>
				  </a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
				  <a-form-item label="答辩通过情况"
				               :labelCol="{lg: {span: 5}, sm: {span:5}}"
				               :wrapperCol="{lg: {span: 17}, sm: {span: 17} }">
                  <a-radio-group v-model="objFrom.whetherReplyPassed" class="radio-box">
                    <a-radio :value="1">
                      通过
                    </a-radio>
                    <a-radio :value="2">
                      不通过
                    </a-radio> 
                  </a-radio-group>
				  </a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
					<a-form-item label="WBS关联" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						<BaseInput v-model="objFrom.associationWBS"  />
					</a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
					<a-form-item label="备注" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						<BaseTextarea v-model="objFrom.content" :rows="4"  />
					</a-form-item>
				</a-col>
			</a-row>
		</a-form>
	</a-modal>
</template>

<script>
	export default{
		props:{
			visible: {
			  type: Boolean,
			  required: true
			},
			model: {
			  type: Object,
			  default: () => null
			}
		},
		data(){
			return{
				objFrom:{},
			}
		},
		methods:{
			submit(){
				this.$emit('ok',this.objFrom)
			},
			changeSource(value){
				this.objFrom.source = value
			},
			//计划实施时间
			PlanningTime(date, datestring){
				this.objFrom.implementationTime = datestring
			},
			//分类
			handleChange(value){
				this.objFrom.idoubleType = value
			},
			//详细分类
			handleChange1(value){
				this.objFrom.doubleTypeDetail = value
			}
		}
	}
</script>

<style lang="less">
.radio-box {
    .ant-radio-wrapper {
        position: static !important;
    }
    .ant-radio-group {
        margin-top: 3% !important;
        display: flex;
    }
}

</style>
